from flask_restful import fields  # type: ignore
from libs.helper import  TimestampField

pick_addr_fields = {
    "id": fields.String,
    "tenant_id": fields.String,
    "shop_id": fields.String,
    "name": fields.String,
    "addr": fields.String,
    "mobile": fields.String,
    "province": fields.String,
    "province_id": fields.String,
    "city": fields.String,
    "city_id": fields.String,
    "district": fields.String,
    "district_id": fields.String,
    "created_at": TimestampField,
    "updated_at": TimestampField,
    "created_by": fields.String,
    "updated_by": fields.String,
}

pick_addr_list_fields={
    "total": fields.Integer,
    "has_more": fields.Boolean,
    "data": fields.List(fields.Nested(pick_addr_fields)),
}